package zhuyun.code.launcheractivity.model

import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.QueryMap
import zhuyun.code.launcheractivity.model.data.*

/**
 * @author: Administrator
 * @date: 2021/11/17
 */
interface HttpApi {
    //验证码检测认证
    @POST("/App/User/VerificationCode")
    fun verificationCode(@QueryMap map: Map<String, String>): Observable<BaseResponse<String>>

    //手机注册
    @POST("/App/User/PhoneRegister")
    fun phoneRegister(@QueryMap map: Map<String, String>): Observable<BaseResponse<String>>

    //手机登陆
    @POST("/App/User/MobileLogin")
    fun mobileLogin(@QueryMap map: Map<String, String>): Observable<BaseResponse<MobileLoginBean>>

    //商城首页
    @GET("/App")
    fun getHomePageData(@QueryMap map: Map<String, String>): Observable<BaseResponse<HomeBean>>

    //通讯用户详情
    @GET("/Api/Friend/GetFriendDetail")
    fun getFriendDetails(@QueryMap map: Map<String, String>): Observable<BaseResponse<FriendDetailsBean>>

    //共同的好友
    @GET("/Api/Friend/CommonFriends")
    fun getCommonFriends(@QueryMap map: Map<String, String>): Observable<BaseResponse<List<RecommendFriendsBean>>>

    //我的动态
    @GET("/Api/FriendCircle/GetMyDynamicList")
    fun getMyDynamicList(@QueryMap map: Map<String, String>): Observable<BaseResponse<List<CircleListBean>>>

    //我的动态详细资料
    @GET("/Api/FriendCircle/GetDetailByUserId")
    fun getDetailByUserId(@QueryMap map: Map<String, String>): Observable<BaseResponse<GetDetailByUserIdBean>>

    //申请添加好友
    @POST("/Api/Friend/ApplyAddFriend")
    fun applyAddFriend(@QueryMap map: Map<String, String>): Observable<BaseResponse<CommonRequestBean>>

    //分页列表
    @GET("/App/PostDynamic/GetPageList")
    fun getPostDynamic(@QueryMap map: Map<String, String>): Observable<BaseResponse<List<PostDynamicListData>>>

    //国家列表
    @GET("/App/AppConfigure/GetCountry")
    fun getCountry(@QueryMap map: Map<String, String>): Observable<BaseResponse<List<CountryBean>>>

    //主类管理 主类列表
    @GET("/App/Shop/GetMainClassList")
    fun getFollowMain(@QueryMap map: Map<String, String>): Observable<BaseResponse<List<FollowMainBean>>>



}